package com.ppch.zerocodegenerator;

import dev.langchain4j.community.store.embedding.redis.RedisEmbeddingStore;
import dev.langchain4j.community.store.embedding.redis.spring.RedisEmbeddingStoreAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 暂时排除掉 RedisEmbeddingStore，这是用于实现 RAG 的，现在只是将 Redis 作为对话记忆存储，不需要用到该类。
 */
@EnableCaching //支持 Spring Data Redis 缓存
@SpringBootApplication(exclude = RedisEmbeddingStoreAutoConfiguration.class)
@MapperScan("com.ppch.zerocodegenerator.mapper")
public class ZeroCodeGeneratorApplication {

    public static void main(String[] args) {
        System.setProperty("file.encoding", "UTF-8");
        SpringApplication.run(ZeroCodeGeneratorApplication.class, args);
    }

}
